package com.itheima.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.dao.LkMenuDao;
import com.itheima.pojo.Menu;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author likun
 * @version V1.0
 * @date 2020/3/10 16:40
 */
@Service(interfaceClass = LkMenuService.class)
@Transactional
public class LkMenuServiceImpl implements LkMenuService {
    @Autowired
    private LkMenuDao menuDao;
    @Override
    public List<Menu> findAllMenu() {
        return menuDao.findAllMenu();
    }
}
